package com.itheima.job.jobTest2;

public class Company implements Money {
    private static double totalMoney = 1000000.0;

    @Override
    public void paySalary(Employee employee) {
        totalMoney-=employee.getSalary();
        System.out.println("给"+employee.getName()+"发工资"
                +employee.getSalary()+",公司还剩余:"+totalMoney+"元");
    }
}
